/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jiadakeji.ppm.modules.business.entity;

import org.hibernate.validator.constraints.Length;

import com.jiadakeji.ppm.common.persistence.DataEntity;

/**
 * 小区Entity
 * @author HHAOYU
 * @version 2019-07-08
 */
public class Community extends DataEntity<Community> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 小区名称
	private String code;		// 小区编号
	private String remark;		// remark
	
	public Community() {
		super();
	}

	public Community(String id){
		super(id);
	}

	@Length(min=0, max=255, message="小区名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="小区编号长度必须介于 0 和 32 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=255, message="remark长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}